package two_xia.ex6.test02;

public class Client {
    // 客户端代码
    public static void main(String[] args) {
        System.out.print("狗学:");
        Cat cat = new CatImpl();
        Dog dog = new Adapter(cat);
        dog.cry();
        System.out.print("猫学:");
        Dog dog1 = new DogImpl();
        Cat cat1 = new Adapter(dog1);
        cat1.play();
    }
}